﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace QuanLyThuVien
{
    public partial class ucDangNhap : DevExpress.XtraEditors.XtraUserControl
    {
        public ucDangNhap()
        {
            InitializeComponent();
        }

        private void btDangNhap_Click(object sender, EventArgs e)
        {
            if (this.txtTenDangNhap.Text == "nhat" && this.txtMatKhau.Text == "thuong")
            {
                MessageBox.Show("Dang Nhap Thanh Cong");
                Form1 frm = (Form1) Application.OpenForms[0];
                frm.DangNhapThanhCong();
            }
            else
            {
                MessageBox.Show("Dang Nhap That Bai!!!");
            }
            
        }
    }
}
